<?php
namespace app\ home\ model;

use think\ Model;

class BfAttachments extends Model {
	protected $table = 'bf_attachments';
	protected $dateFormat = 'Y-m-d H:i:s';
	protected $type = [
        'create_time'    =>  'timestamp',
    ];

	public static function loadlist($search = []){
        $where = [];
        
        if(empty($where)){
            $where = true;
        }
        $list = self :: where($where) -> order('id desc') -> paginate($search['pagesize'],false,['query' => request()->get()]);
		return $list;
	}
}